Representing Stacks in Memory